package com.benromberg.jameshook;

import java.lang.reflect.Method;

public abstract class HookMethod {
	public static HookMethod hookAllMethods() {
		return new HookMethod() {
			@Override
			public boolean hookActive(Method method) {
				return true;
			}
		};
	}

	public static enum HookMode {
		BEFORE, AFTER, BEFORE_AND_AFTER, REPLACE;
	}

	protected abstract boolean hookActive(Method method);
}
